package cn.turing.firecontrol.device.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 支付订单（支付流水信息）对象 t_cw_pay_order
 * 
 * @author ruoyi
 * @date 2023-02-28
 */
public class TCwPayOrder
{
    private static final long serialVersionUID = 1L;

    private Long id;

    private String orderNo;

    private String tradeAccount;

    private Long tradeAccountType;

    private String tradeAccountNo;

    private Long userId;

    private Long userType;

    private Long operationType;

    private Long payWay;

    private BigDecimal amount;

    private BigDecimal payAmount;

    private BigDecimal finalAmount;

    private BigDecimal discountAmount;

    private String tradeUser;
    private String businessOrderPlanNo;

    public String getBusinessOrderPlanNo() {
        return businessOrderPlanNo;
    }

    public void setBusinessOrderPlanNo(String businessOrderPlanNo) {
        this.businessOrderPlanNo = businessOrderPlanNo;
    }

    private String dsAccount;

    private String tradeQudao;

    private String qudaoOrderNo;

    private Long tradeResult;

    /** 返回码：系统记录，界面不展示。(充值或提现失败时的错误码) */
    private String returnCode;

    private String returnMsg;

    private Date tradeDateFq;

    private Date tradeDateZx;

    private Date tradeDateZf;

    private Date tradeDateJz;

    private BigDecimal tradeRate;

    private BigDecimal commissionFee;

    /** 开始时间，设定为记录创建时间，作为业务开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间，最后一次业务处理时间，比如支付回调以后 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /** 审核状态：1=待审核，2=审核通过，3=审核不通过，100=系统自动审核，预留字段，暂时自动设置为100 */
    private Long checkState;

    /** 审核时间，预留字段，暂时自动设置为记录创建的系统时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date checkTime;

    /** 审核用户ID */
    private String checkUserid;

    /** 审核失败原因 */
    private String checkFailReason;

    private String outOrderNo;

    private Long dzState;

    private String certificateJz;

    private String productSubject;

    private String productBody;

    private BigDecimal canClearingAmount;

    /** 备注 */
    private String remarks;

    /** 预留字段1 */
    private Date reserve1;

    /** 预留字段2 */
    private Long reserve2;

    /** 预留字段3 */
    private String reserve3;

    /** 预留字段4 */
    private String reserve4;

    /** 预留字段5 */
    private String reserve5;

    /** 删除标识。0:未删除，1：删除 */
    private Integer delFlg;

    /** 创建用户ID */
    private Long createUserid;

    /** 更新用户ID */
    private Long updateUserid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setTradeAccount(String tradeAccount) 
    {
        this.tradeAccount = tradeAccount;
    }

    public String getTradeAccount() 
    {
        return tradeAccount;
    }
    public void setTradeAccountType(Long tradeAccountType) 
    {
        this.tradeAccountType = tradeAccountType;
    }

    public Long getTradeAccountType() 
    {
        return tradeAccountType;
    }
    public void setTradeAccountNo(String tradeAccountNo) 
    {
        this.tradeAccountNo = tradeAccountNo;
    }

    public String getTradeAccountNo() 
    {
        return tradeAccountNo;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }
    public void setOperationType(Long operationType) 
    {
        this.operationType = operationType;
    }

    public Long getOperationType() 
    {
        return operationType;
    }
    public void setPayWay(Long payWay) 
    {
        this.payWay = payWay;
    }

    public Long getPayWay() 
    {
        return payWay;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setPayAmount(BigDecimal payAmount) 
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount() 
    {
        return payAmount;
    }
    public void setFinalAmount(BigDecimal finalAmount) 
    {
        this.finalAmount = finalAmount;
    }

    public BigDecimal getFinalAmount() 
    {
        return finalAmount;
    }
    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setTradeUser(String tradeUser) 
    {
        this.tradeUser = tradeUser;
    }

    public String getTradeUser() 
    {
        return tradeUser;
    }
    public void setDsAccount(String dsAccount) 
    {
        this.dsAccount = dsAccount;
    }

    public String getDsAccount() 
    {
        return dsAccount;
    }
    public void setTradeQudao(String tradeQudao) 
    {
        this.tradeQudao = tradeQudao;
    }

    public String getTradeQudao() 
    {
        return tradeQudao;
    }
    public void setQudaoOrderNo(String qudaoOrderNo) 
    {
        this.qudaoOrderNo = qudaoOrderNo;
    }

    public String getQudaoOrderNo() 
    {
        return qudaoOrderNo;
    }
    public void setTradeResult(Long tradeResult) 
    {
        this.tradeResult = tradeResult;
    }

    public Long getTradeResult() 
    {
        return tradeResult;
    }
    public void setReturnCode(String returnCode) 
    {
        this.returnCode = returnCode;
    }

    public String getReturnCode() 
    {
        return returnCode;
    }
    public void setReturnMsg(String returnMsg) 
    {
        this.returnMsg = returnMsg;
    }

    public String getReturnMsg() 
    {
        return returnMsg;
    }
    public void setTradeDateFq(Date tradeDateFq) 
    {
        this.tradeDateFq = tradeDateFq;
    }

    public Date getTradeDateFq() 
    {
        return tradeDateFq;
    }
    public void setTradeDateZx(Date tradeDateZx) 
    {
        this.tradeDateZx = tradeDateZx;
    }

    public Date getTradeDateZx() 
    {
        return tradeDateZx;
    }
    public void setTradeDateZf(Date tradeDateZf) 
    {
        this.tradeDateZf = tradeDateZf;
    }

    public Date getTradeDateZf() 
    {
        return tradeDateZf;
    }
    public void setTradeDateJz(Date tradeDateJz) 
    {
        this.tradeDateJz = tradeDateJz;
    }

    public Date getTradeDateJz() 
    {
        return tradeDateJz;
    }
    public void setTradeRate(BigDecimal tradeRate) 
    {
        this.tradeRate = tradeRate;
    }

    public BigDecimal getTradeRate() 
    {
        return tradeRate;
    }
    public void setCommissionFee(BigDecimal commissionFee) 
    {
        this.commissionFee = commissionFee;
    }

    public BigDecimal getCommissionFee() 
    {
        return commissionFee;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCheckState(Long checkState) 
    {
        this.checkState = checkState;
    }

    public Long getCheckState() 
    {
        return checkState;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setCheckUserid(String checkUserid) 
    {
        this.checkUserid = checkUserid;
    }

    public String getCheckUserid() 
    {
        return checkUserid;
    }
    public void setCheckFailReason(String checkFailReason) 
    {
        this.checkFailReason = checkFailReason;
    }

    public String getCheckFailReason() 
    {
        return checkFailReason;
    }
    public void setOutOrderNo(String outOrderNo) 
    {
        this.outOrderNo = outOrderNo;
    }

    public String getOutOrderNo() 
    {
        return outOrderNo;
    }
    public void setDzState(Long dzState) 
    {
        this.dzState = dzState;
    }

    public Long getDzState() 
    {
        return dzState;
    }
    public void setCertificateJz(String certificateJz) 
    {
        this.certificateJz = certificateJz;
    }

    public String getCertificateJz() 
    {
        return certificateJz;
    }
    public void setProductSubject(String productSubject) 
    {
        this.productSubject = productSubject;
    }

    public String getProductSubject() 
    {
        return productSubject;
    }
    public void setProductBody(String productBody) 
    {
        this.productBody = productBody;
    }

    public String getProductBody() 
    {
        return productBody;
    }
    public void setCanClearingAmount(BigDecimal canClearingAmount) 
    {
        this.canClearingAmount = canClearingAmount;
    }

    public BigDecimal getCanClearingAmount() 
    {
        return canClearingAmount;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setReserve1(Date reserve1) 
    {
        this.reserve1 = reserve1;
    }

    public Date getReserve1() 
    {
        return reserve1;
    }
    public void setReserve2(Long reserve2) 
    {
        this.reserve2 = reserve2;
    }

    public Long getReserve2() 
    {
        return reserve2;
    }
    public void setReserve3(String reserve3) 
    {
        this.reserve3 = reserve3;
    }

    public String getReserve3() 
    {
        return reserve3;
    }
    public void setReserve4(String reserve4) 
    {
        this.reserve4 = reserve4;
    }

    public String getReserve4() 
    {
        return reserve4;
    }
    public void setReserve5(String reserve5) 
    {
        this.reserve5 = reserve5;
    }

    public String getReserve5() 
    {
        return reserve5;
    }
    public void setDelFlg(Integer delFlg) 
    {
        this.delFlg = delFlg;
    }

    public Integer getDelFlg() 
    {
        return delFlg;
    }
    public void setCreateUserid(Long createUserid) 
    {
        this.createUserid = createUserid;
    }

    public Long getCreateUserid() 
    {
        return createUserid;
    }
    public void setUpdateUserid(Long updateUserid) 
    {
        this.updateUserid = updateUserid;
    }

    public Long getUpdateUserid() 
    {
        return updateUserid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("tradeAccount", getTradeAccount())
            .append("tradeAccountType", getTradeAccountType())
            .append("tradeAccountNo", getTradeAccountNo())
            .append("userId", getUserId())
            .append("userType", getUserType())
            .append("operationType", getOperationType())
            .append("payWay", getPayWay())
            .append("amount", getAmount())
            .append("payAmount", getPayAmount())
            .append("finalAmount", getFinalAmount())
            .append("discountAmount", getDiscountAmount())
            .append("tradeUser", getTradeUser())
            .append("dsAccount", getDsAccount())
            .append("tradeQudao", getTradeQudao())
            .append("qudaoOrderNo", getQudaoOrderNo())
            .append("tradeResult", getTradeResult())
            .append("returnCode", getReturnCode())
            .append("returnMsg", getReturnMsg())
            .append("tradeDateFq", getTradeDateFq())
            .append("tradeDateZx", getTradeDateZx())
            .append("tradeDateZf", getTradeDateZf())
            .append("tradeDateJz", getTradeDateJz())
            .append("tradeRate", getTradeRate())
            .append("commissionFee", getCommissionFee())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("checkState", getCheckState())
            .append("checkTime", getCheckTime())
            .append("checkUserid", getCheckUserid())
            .append("checkFailReason", getCheckFailReason())
            .append("outOrderNo", getOutOrderNo())
            .append("dzState", getDzState())
            .append("certificateJz", getCertificateJz())
            .append("productSubject", getProductSubject())
            .append("productBody", getProductBody())
            .append("canClearingAmount", getCanClearingAmount())
            .append("remarks", getRemarks())
            .append("reserve1", getReserve1())
            .append("reserve2", getReserve2())
            .append("reserve3", getReserve3())
            .append("reserve4", getReserve4())
            .append("reserve5", getReserve5())
            .append("delFlg", getDelFlg())
            .append("createUserid", getCreateUserid())
            .append("updateUserid", getUpdateUserid())
            .toString();
    }
}
